﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Chess
{
    public class Pieces:IEnumerable
    {     
        public Player player;
        public ArrayList filePiece = new ArrayList();

        public IEnumerator GetEnumerator()
        {
            return filePiece.GetEnumerator();
        }        
        public Pieces(Player Player)
        {
            player = Player;
        }
        public void Add(Piece piece)
        {
            filePiece.Add(piece);
        }
    }
}
